#include <iostream>
using namespace std;
int a[10];
int count_a=0;
int main()
{
	for(int i=1000;i<=1100;i++){
		int temp=i;
		while(temp>0){
			a[count_a]=temp%10;
			temp=temp/10;
			count_a++;
		}
		int k=a[0]*1000+a[1]*100+a[2]*10+a[3];
		if(k==i*9){
			cout<<i<<endl;
		}
		count_a=0;
	}
	return 0;
}
